using System;

namespace Clandestine.Graphics
{
	public class Color4
	{
		public float R;
		public float G;
		public float B;
		public float A;
		
		public Color4(float r, float g, float b, float a)
		{
			R = r;
			G = g;
			B = b;
			A = a;
		}
		
		public static Color4 Multiply(Color4 a, Color4 b)
		{
			return new Color4(a.R * b.R, a.G * b.G, a.B * b.B, a.A * a.A);
		}
		
		public Color4 Multiply(Color4 mul)
		{
			return Color4.Multiply(this, mul);
		}
		
		public static Color4 Black { get { return new Color4(0f, 0f, 0f, 1f); } }
		public static Color4 Yellow { get { return new Color4(1f, 1f, 0f, 1f); } }
		public static Color4 White { get { return new Color4(1f, 1f, 1f, 1f);  } }
		public static Color4 Red { get { return new Color4(1f, 0f, 0f, 1f); } }
		public static Color4 Green { get { return new Color4(0f, 1f, 0f, 1f); } }
		public static Color4 Blue { get { return new Color4(0f, 0f, 1f, 1f); } }
		
	}
}

